<div class="accordination detail-working">
    <h2 class="thead">職 歴 (Quá trình làm việc)</h2>
    <table class="pdetail">
        <tbody>
            <tr>
                <td rowspan="2" style="text-align: center;" class="yel">
                    勤 務 期 間<br/>Thời gian làm việc</td>
                <td rowspan="2" style="text-align: center;" class="yel">
                    会　社　名<br/>Tên công ty</td>
                <td rowspan="2" style="text-align: center;" class="yel">
                    仕 事 内 容<br/>Nội dung làm việc</td>
                <td colspan="2" style="text-align: center;" class="yel">
                    給料-Tiền lương</td>
            </tr>
            <tr>
                <td style="text-align: center;" class="yel">
                    基本給-Căn bản</td>
                <td style="text-align: center;" class="yel">
                    給 与-Thực lãnh</td>
            </tr>
            <?php
            $workingProcess = $model->workingProcesses;
            foreach ($workingProcess as $index => $item) :
                if (isset($translatedModel)) {
                    $itemT = $translatedModel->workingProcesses[$index];
                }
                ?>

                <tr>
                    <td style="text-align: center;">                        
                        <?php echo (isset($mode) && $mode=='view') ? Html::encode($item->working_time) . '<br>' : ''; ?>
                        <?php echo isset($translatedModel) ? Html::encode($itemT->working_time) : ''; ?></td>
                    <td style="text-align: center;">
                        <?php echo (isset($mode) && $mode=='view') ? Html::encode($item->company) . '<br>' : ''; ?>
                        <?php echo isset($translatedModel) ? Html::encode($itemT->company) : ''; ?></td>
                    <td style="text-align: center;">
                        <?php echo (isset($mode) && $mode=='view') ? Html::encode($item->job_description) . '<br>' : ''; ?>
                        <?php echo isset($translatedModel) ? Html::encode($itemT->job_description) : ''; ?></td>
                    <td style="text-align: center;">
                        <?php echo (isset($mode) && $mode=='view') ? Html::encode($item->basic_salary) . '<br>' : ''; ?>
                        <?php echo isset($translatedModel) ? Html::encode($itemT->basic_salary) : ''; ?></td>
                    <td style="text-align: center;">
                        <?php echo (isset($mode) && $mode=='view') ? Html::encode($item->real_salary) . '<br>' : ''; ?>
                        <?php echo isset($translatedModel) ? Html::encode($itemT->real_salary) : ''; ?></td>
                </tr>
                <?php
            endforeach;
            ?>			
        </tbody>
    </table>
</div>